home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-01-02 | 972 b | 28 lines | [TEXT/GEOL] |
- Item 5101555 27-Dec-89 10:30
-
- From: D1165 Esha, David C Hands,PRT
-
- To: MACAPP.TECH$ MacApp Technical
-
- Sub: IRes; NIL vs ItsDocument?
-
- Hello,
-
- When creating a window via NewTemplateWindow one of the paramaters is
- "itsDocument", which is passed along to subviews thru IRes and IView eventually
- to be assigned directly to the fDocument field of TView. But for many classes,
- especially TControl decendants, MacApp will ignore itsDocument parameter and
- instead pass IRes NIL. The result being that the subview is not added to the
- documents subview list.
-
- It appears that printing is the only reason MacApp uses the subview list. So
- should one pass itsDocument for views to be printed and NIL otherwise? Are
- there other reasons for not wanting to pass a valid document reference to IRes
- or for not wanting all subviews in the subview list?
-
- Thanks.
-
- David Hands
- ESHA Research
-
-